bar:
  height: 12
  location: top
  background: 000000ff

  right:
    - clock:
        content:
          - string: {text: "{date} ", right-margin: 5}
          - string: {text: "{time} | "}
    - cpu:
        poll-interval: 2500
        content:
          map:
            conditions:
              id < 0:
                - string: {text: "CPU: {cpu}% | "}
    - mem:
        poll-interval: 2500
        content:
          string: {text: "MEM: {used:mb}MB | "}

                #    - network:
                #        content:
                #          map:
                #            default:
                #              string: {text: "{name}: {state} ({ipv4})"}
                #            conditions:
                #              ipv4 == "":
              #                string: {text: "{name}: {state}"}
    - pipewire:
        anchors:
          volume: &volume
            conditions:
              muted: {string: {text: "LV: {linear_volume}%  ", foreground: ff0000ff}}
              ~muted: {string: {text: "LV: {linear_volume}%  "}}
        content:
          list:
            items:
              - map:
                  conditions:
                    type == "sink":
                      map:
                        conditions:
                          icon == "audio-headset-bluetooth":
                            string: {text: "AHB  "}
                        default:
                          - ramp:
                              tag: linear_volume
                              items:
                                - string: {text: "  "}
                                - string: {text: "  "}
                                - string: {text: "  "}
                    type == "source":
                      - string: {text: "SOURCE: "}
              - map:
                    <<: *volume

  left:
    - dwl:
        number-of-tags: 9
        dwl-info-filename: "/home/user/.cache/dwl_info"
        name-of-tags: [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
        content:
          list:
            items:
              - map:
                  conditions:
                    # default tag
                    id == 0: {string: {text: "{layout} {title}"}}

                    selected: {string: {text: "-> {name}"}}
                    ~empty: {string: {text: "{name}"}}
                    urgent: {string: {text: "=> {name} <="}}

